<!doctype html>
<html lang="fr">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">

<title>Orientation Covid-19</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

<div class="col-md-6 offset-md-3">
<h1>Orientation Covid-19</h1>
<br>

<?php
//variables sous forme de listes contenant les différentes options des listes déroulantes
$age = ['opt1' => '<15', 'opt2' => '<15 et >=65', 'opt3' => '>=65'];
$fievre = ['opt1' => '<35,5°', 'opt2' => '>=35,5° et <39', 'opt3' => '>=39°', 'opt4' => 'oui'];
$imc = ['opt1' => '<30 kg/m²', 'opt2' => '>=30 kg/m²'];
$douleurs = ['opt1' => 'non', 'opt2' => 'modérées', 'opt3' => 'fortes'];
$toux = ['opt1' => 'oui', 'opt2' => 'non'];
$fatigue = ['opt1' => 'oui', 'opt2' => 'non'];
$gene_respi = ['opt1' => 'oui', 'opt2' => 'non'];
$diarrhee = ['opt1' => 'oui', 'opt2' => 'non'];
$anosmie = ['opt1' => 'oui', 'opt2' => 'non'];
$diabete = ['opt1' => 'oui', 'opt2' => 'non'];
$difficultes = ['opt1' => 'oui', 'opt2' => 'non'];
$vaccine = ['opt1' => 'oui', 'opt2' => 'non'];
?>



<form class="row g-3" action="traitement_vaccin.php" method="POST">

	<div class="col-md-4">
		<label for="age" class="form-label">Age</label>
		<select id="age" name="age" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($age as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="fievre" class="form-label">Fièvre</label>
		<select id="fievre" name="fievre" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($fievre as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>

	<div class="col-md-4">
		<label for="imc" class="form-label">IMC</label>
		<select id="imc" name="imc" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($imc as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="douleurs" class="form-label">Douleurs</label>
		<select id="douleurs" name="douleurs" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($douleurs as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="toux" class="form-label">Toux</label>
		<select id="toux" name="toux" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($toux as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="fatigue" class="form-label">Fatigue</label>
		<select id="fatigue" name="fatigue" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($fatigue as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="gene_respi" class="form-label">Gêne respiratoire</label>
		<select id="gene_respi" name="gene_respi" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($gene_respi as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="diarrhee" class="form-label">Diarrhée</label>
		<select id="diarrhee" name="diarrhee" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($diarrhee as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="anosmie" class="form-label">Anosmie</label>
		<select id="anosmie" name="anosmie" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($anosmie as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="diabete" class="form-label">Diabète</label>
		<select id="diabete" name="diabete" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($diabete as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>
	
	<div class="col-md-4">
		<label for="difficultes" class="form-label">Difficulté importante pour s'alimenter ou boire</label>
		<select id="difficultes" name="difficultes" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($difficultes as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>

	<div class="col-md-4">
		<label for="vaccine" class="form-label">Vaccination complète</label>
		<select id="vaccine" name="vaccine" class="form-select">
			<option selected disabled>Choix</option>
			<?php foreach($vaccine as $opt => $valeur)
			{
				echo '<option value="'.$valeur.'">'.$valeur.'</option>';	
			}
			?>
		</select>
	</div>


  <div class="col-12">
    <button type="submit" class="btn btn-primary">Valider</button>
    <button type="reset" class="btn btn-light">Annuler</button>
  </div>
</form>

</div>

</body>
  

  
</html>